<script type="text/javascript">
	$(function() {
	    $.fn.dataGridOptions.formSubFun("#form",'/modules/additional/activityPlan/doModify.html',"修改成功！","修改失败！");
	});
</script> 
<form id="form"  method="post">
<div class="popForm sForm">
   	<input type="hidden" name="id" value="${activityPlan.id}">
	<div class="formitm">
		<label class="lab">活动方案：</label>
		<div class="ipt">
			<input type="hidden" name="name" value="${activityPlan.name}"></input>
			${activityPlan.name}
		</div>
	</div>
	
	<div class="formitm">
		<label class="lab">红包规则：</label>
		<#if activityPlan.redEnvelopeRule??>
			<#assign redEnvelopeRuleId = activityPlan.redEnvelopeRule.id>
		<#else>
			<#assign redEnvelopeRuleId = 0>
		</#if>
		<div class="ipt">
			<select name="redEnvelopeRuleId">
				<option value="">无</option>
				<#list redEnvelopeList as item>
					<option value="${item.id!}" <#if item.id=redEnvelopeRuleId>selected</#if>>${item.name!}</option>
				</#list>
			</select>
		</div>
	</div>
	<div class="formitm">
		<label class="lab" style="width: 85px;">体验券规则：</label>
		<#if activityPlan.experienceRule??>
			<#assign experienceRuleId = activityPlan.experienceRule.id>
		<#else>
			<#assign experienceRuleId = 0>
		</#if>
		<div class="ipt">
			<select name="experienceRuleId">
				<option value="">无</option>
				<#list experienceRuleList as item>
					<option value="${item.id!}" <#if item.id=experienceRuleId>selected</#if>>${item.name!}</option>
				</#list>
			</select>
		</div>
	</div>
	<div class="formitm">
		<label class="lab" style="width: 85px;">加息券规则：</label>
		<#if activityPlan.rateRule??>
			<#assign rateRuleId = activityPlan.rateRule.id>
		<#else>
			<#assign rateRuleId = 0>
		</#if>
		<div class="ipt"><select name="rateRuleId">
			<option value="">无</option>
			<#list rateRuleList as item>
				<option value="${item.id!}" <#if item.id=rateRuleId>selected</#if>>${item.ruleName!}</option>
			</#list>
		</select>
		</div>
	</div>
	<div class="formitm">
		<label class="lab">状态：</label>
		<div class="ipt">
			<select name="status" id="status">
				<option value="1" <#if activityPlan.status??&&activityPlan.status==1>selected="selected"</#if>>启用</option>
				<option value="2" <#if activityPlan.status??&&activityPlan.status==2>selected="selected"</#if>>未启用</option>
			</select>
		</div>
	</div>
	<div class="formitm">
		<label class="lab">开始时间：</label>
		<div class="ipt">
			<input type="text" name="startTime" value="${activityPlan.startTime?string('yyyy-MM-dd HH:mm:ss')}" id="startTime" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'endTime\')}',dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" class="searchTime"/>
		</div>
	</div>
	<div class="formitm">
		<label class="lab">结束时间：</label>
		<div class="ipt">
			<input type="text" name="endTime" value="${activityPlan.endTime?string('yyyy-MM-dd HH:mm:ss')}" id="endTime" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'endTime\')}',dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" class="searchTime"/>
		</div>
	</div>
</div>
</form>